home *** CD-ROM | disk | FTP | other *** search
- Shell scripts for common conversions using Amiga SOX
-
- These directories each contain 13 shell scripts for dealing with
- certain types of sound conversions more easily. The directory "DOS"
- contains scripts for use under the AmigaDOS standard shell; "CSH"
- contains scripts for the Dillon/Drew/Borreo&Dieni/Mueller Csh, an
- emulation of the Unix csh shell.
-
-
- CSH USAGE
-
- If you use csh, install these scripts in any directory included in
- your search path, and call them with the basename of the scriptname
- (i.e., the same name as the corresponding dos script. For au2iff.sh,
- use au2iff on the command line). Command syntax is as follows:
-
- XtoY <sourcefile> #convert sourcefile OR sourcefile.X
- #to sourcefile.Y
- XtoY <sourcefile>.ext #convert sourcefile.ext to sourcefile.Y
-
- For example, to convert the u-law sound "spam.au" to VOC format, use
- the command:
-
- au2voc spam
- or
- au2voc spam.au
-
- Unlike SOX itself, the scripts do NOT base file type on filename
- extensions, so if you were to rename "spam.au" to "spam.snd", the
- command
-
- au2voc spam.snd
-
- would perform the same operation. All of the above commands would
- create a VOC (Creative Voice) file named "spam.voc".
-
- In addition, the file "soxaliases.sh" contains a set of csh shell
- aliases which perform the same operations as the scripts. They can
- be used interchangeably, and you need have only one method installed
- at a time.
-
-
- DOS USAGE
-
- The AmigaDOS shell lacks many of the features of csh, and one of
- them is the ability to add and remove filename extensions. Thus
- command syntax for the DOS scripts is necessarily a bit less
- flexible than that of the csh scripts. Generic syntax is:
-
- XtoY <sourcefile> ;convert sourcefile.X to sourcefile.Y
-
- Note the absence of any filename extension in this syntax, as opposed
- to the csh usage, in which source file extensions are ignored.
-
- The above example would be rendered in DOS as:
-
- au2voc spam
-
- and renaming the file "spam.au" to "spam.snd" would prevent you from
- successfully converting the file. Required filename extensions for
- source files are:
-
- Type Extension
- ---- ---------
- AIFF .aiff
- Creative Voice (VOC) .voc
- IFF-8SVX .iff
- u-law .au
- RIFF-WAVE .wav
-
- These are also the default filename extensions for the converted
- sound files under either shell.
-
- Another side effect of the DOS shell's lackof filename handling is
- that specifying a full path name for a source file will cause sox to
- use that path when creating the destination file, as well. The csh
- versions will always write the output to the current directory.
-
-
- STAT
-
- In addition, I have provided a script which performs the "stat"
- operation on any file. Usage is:
-
- stat <soundfile>
-
- filename handling is the same in either environment.
-
-
- OTHER FILES
-
- Several conversion scripts were added immediately prior to
- distribution. These are:
-
- mac52iff
- mac72iff
- mac112iff
- mac222iff
-
- Each converts Macintosh-style unsigned linear raw sound files to
- IFF-8SVX format, setting the rate according to the distinctive number
- in the command name. mac52iff converts Macintosh 5696 Hz sounds;
- mac72iff converts 7596 Hz sounds; mac112iff converts at 11395 Hz; and
- mac222iff works on 22790 Hz sounds. You must determine through prior
- knowledge or experimentation which is the correct sampling rate. All
- of the commands require a ".snd" filename extension in the AmigaDOS
- version of the scripts.
-
-
- ETC
-
- Feel free to change these scripts to suit yourself, but please do
- not redistribute them in modified form. You may find them an aid in
- creating your own series of easy conversion utilities.
-
-
- --dgc
-